//
//  CZSearchTextField.swift
//  WeiBo
//
//  Created by Apple on 16/9/13.
//  Copyright © 2016年 KY. All rights reserved.
//

import UIKit

@IBDesignable
class CZSearchTextField: UITextField {

    @IBInspectable
    var borderWidth: CGFloat = 0 {
        didSet {
            self.layer.borderWidth = borderWidth
        }
    }
    @IBInspectable
    var borderColor: UIColor? {
        didSet {
            self.layer.borderColor = borderColor?.cgColor
        }
    }
    
    @IBInspectable
    var cornerRadius: CGFloat = 0 {
        didSet {
            self.layer.cornerRadius = cornerRadius
            self.layer.masksToBounds = true
        }
    }

}
